//
// Created by 11510 on 2024/6/14.
//
#include <iostream>
#include <string>
#include <cstring>
using std::cout;
using std::endl;
using std::string;
using std::ostream;


void test0(){
    string string1("hello");
    string string2("hello,world!!!!!!!!!");

    cout << &string1 << endl;
    cout << &string1[0] << endl;
    printf("%p\n", &string2[0]);
//    cout << &string2 << endl;
    string string3 = string2;
    printf("%p\n", &string3[0]);
/*    cout << string1.size() << endl;
    cout << string2.size() << endl;
    cout << string1.capacity() << endl;
    cout << string2.capacity() << endl;*/
}

int main() {
    test0();
    return 0;
}